import request from '@/utils/request'

export const getBorrowerListService = (queryinf) => {
  return request.get('/borrower/selectBorrowersByQueryinf', {
    params: { queryinf: queryinf }
  })
}

export const delBorrowerService = (username) => {
  return request.get('/borrower/delBorrowersByUsername', {
    params: { username: username }
  })
}

export const addBorrowerService = (params) => {
  return request.post('/borrower/addBorrowers', params)
}

export const editBorrowerService = (params) => {
  return request.post('/borrower/editBorrowers', params)
}
